import axiosInstance from './axiosInstance'

export function addAdv(formdata) {
  return axiosInstance.post('/addAdv', formdata, {
    headers: {
      'Content-Type': 'multipart/form-data',
    },
  })
}
export function getAdvs() {
  return axiosInstance.get(`/getAdvs`)
}
export function getAdvOne(id) {
  return axiosInstance.get(`/getAdvOne?id=${id}`)
}
export function deleteAdv(id) {
  return axiosInstance.post(`/deleteAdv`, { id })
}
export function updateAdv(formdata) {
  return axiosInstance.post('/updateAdv', formdata, {
    headers: {
      'Content-Type': 'multipart/form-data',
    },
  })
}
